package com.gklyj.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gklyj.mapper.feedbackMapper;
import com.gklyj.pojo.Feedback;
import com.gklyj.service.feedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class feedbackServiceImpl extends ServiceImpl<feedbackMapper, Feedback> implements feedbackService {

    @Autowired
    feedbackMapper feedbackMapper;

    @Override
    public List<Feedback> GetOneDepartmentFeedback(String name,Integer u_id) {
        return feedbackMapper.getOneDepartmentFeedback(name,u_id);
    }

    @Override
    public List<Feedback> GetFeedbackByState(String state) {
        return feedbackMapper.getFeedbackByState(state);
    }

    @Override
    public List<Feedback> SearchDisserenceFeedback(Feedback feedback) {
        return feedbackMapper.searchDisserenceFeedback(feedback);
    }

    @Override
    public Integer SearchNewFeedback() {
        return feedbackMapper.searchNewFeedback();
    }
}
